﻿@model List<WorkTimePrj.Models.Item>
@{
    ViewBag.Title = "工时超时确认";
}
<!DOCTYPE html>
<html>
<head>
    <title>工时超时确认</title>
     <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/ClearFloat.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            color: #000000;
        }
        .field-validation-error
        {
            float: none;
        }
        .body ul.cur li
        {
            height: 30px;
            line-height: 30px;
        }
        .editor-label
        {
            width: 90px;
            float: left;
        }
        .editor-field
        {
            float: left;
        }
        .Button01
        {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 12px;
            color: #003677;
            height: 20px;
            border: solid 1px #5381B3;
            padding-left: 4px;
            padding-right: 4px;
            background: #ffffff ;
        }
        table td
        {
            /*text-align:left;*/
            padding: 10px 10px 0 10px;
        }
        span.H2
        {
            font-family: simsun;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 0; /*border:solid 1px #d2d2d2;*/
            padding: 10px;
        }
        .WP_1
        {
            width: 95%;
            margin: 0 auto;
        }
        .WP_2
        {
            /*width:99.5%; margin:0 auto;*/
            border: solid 1px #c0d6ef;
            padding: 15px 0 0 0;
            background: #e4ecf5;
        }
        .WP_2 div
        {
            padding-bottom: 10px;
        }
        .WP_2 div.WP_6
        {
            padding-bottom: 0;
            white-space: normal;
        }
        .WP_3
        {
            width: 600px;
            text-align: left;
            margin: 0 auto;
        }
        .Btn01
        {
            border: solid 1px #5381B3;
        }
        .Label01
        {
            color: #440e62;
        }
        .Label02
        {
            color: #440e62;
            font-weight: bold;
        }
        .Text01
        {
            width: 550px;
        }
        .WP_4
        {
            float: left;
            padding-top: 5px;
        }
        .WP_5
        {
            float: left;
        }
        .WP_6
        {
            float: left;
            background: #440E62;
            color: #ffffff;
            margin-left: 5px;
            width: 15px;
            height: 15px;
            line-height: 15px;
        }
    </style>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            if (window.addEventListener) {
                //其它浏览器的事件代码: Mozilla, Netscape, Firefox
                //添加的事件的顺序即执行顺序 //注意用 addEventListener 添加带on的事件，不用加on 
                $('#Submit1')[0].addEventListener('click', click, false);
            }
            else {
                //IE 的事件代码 在原先事件上添加 add 方法
                $('#Submit1')[0].attachEvent('onclick', click);
            }
        });

        function click() {
            window.document.forms[0].submit();
        }
    </script>
</head>
<body>
    @using (Html.BeginForm())
    {
        <div class="WP_1">
            <table style="border: solid 1px #d2d2d2">
                <tr>
                    <td style="border-bottom: solid 1px #d2d2d2; text-align: left; background: #FDEEE6;
                        height: 55px;">
                        <span class="H2">工时超时确认</span> <span>时间 @ViewBag.startTime.ToString("yyyy-MM-dd") 之前</span>&nbsp;&nbsp;&nbsp;
                        <span>数量 @ViewBag.cnt 条</span>
                    </td>
                </tr>
                @if (ViewBag.cnt != 0)
                {
                    <tr>
                        <td>
                            <input type="submit" value="确认" class="Btn01" id="Submit1" />
                        </td>
                    </tr>
                }
                @Html.EditorForModel()
                @if (ViewBag.cnt != 0)
                {
                    <tr>
                        <td>
                            <input type="submit" value="确认" class="Btn01" id="Submit2" />
                        </td>
                    </tr>
                }
            </table>
        </div>
        @Html.CommonnScript() 
    }
</body>
</html>
